<?php
/**
 * Created by PhpStorm.
 * User: XYX
 * Date: 2017/9/5
 * Time: 10:55
 */

namespace App\Api\Transformers;


use App\Award;
use App\Clubbanner;
use App\Train;
use League\Fractal\TransformerAbstract;

class AwardInfoTransformer extends TransformerAbstract
{
    public function transform(Award $item)
    {
        return
            [
                'award_id'=>$item['id'],
                'name'=>$item['name'],
                'award_image'=>$item['award_image'],
                'intro'=>$item['intro'],
            ];
    }

}